﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace SimpleGameAppWithCCR.NComp
{

    


    class Sprite : GOCS.GComponent
    {

        public static List<Sprite> _RenderList = new List<Sprite>();

        public Vector2 _mPosition = new Vector2(0, 0);

        Texture2D _mSpriteTexture;

        public override String GetCompType()
        {
            return typeof(Sprite).Name;
        }

        public Sprite(Texture2D mSpriteTexture)
        {
            _mSpriteTexture = mSpriteTexture ;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw( _mSpriteTexture, _mPosition, Color.White); 
        }


    }



}
